package top.anydata.lifeofcode.lifesystem.dao.sys.app;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import top.anydata.lifeofcode.lifesystem.entity.sys.app.SysAppDetailEntity;

import java.util.Optional;

/**
 * 功能描述:
 *
 * @author <a href="mailto:caingao@anydata.top">CainGao</a>
 * @version V_1.0
 * @date 2024/4/15 11:26 AM
 */
@Repository
public interface ISysAppDetailRepository extends JpaRepository<SysAppDetailEntity,Integer> {

    @Query("select s from SysAppDetailEntity s where s.appId = ?1")
    Optional<SysAppDetailEntity> findByAppId(String appId);
}
